<?php
	class YezhulistAction extends BaseAction{
	
			public function index(){
			$id = $_GET['y_id'];
			$result =M("yezhu")->join("vip ON vip.v_id = yezhu.y_broker")->where("y_id=$id")->join("district ON district.d_id = yezhu.y_district")->select();			
			$v_id = $result['0']['v_id'];
			$y_name = $result['0']['y_name'];

			$rent = M("yezhu")->where("y_broker=$v_id")->limit("15")->field("y_name,y_d_rent,y_id")->select();
			$this->assign("rent",$rent);
			$newtj = M("yezhu")->where("is_jingpin")->order("y_id desc")->limit(15)->field("y_name,y_d_rent,y_id")->select();

			$lou = M("yezhu")->where("y_name = '$y_name'")->select();
			$this->assign("lou",$lou);
			$this->assign("result",$result);
			$this->assign("newtj",$newtj);
			//var_dump($newtj);exit;
			$this->display();
		}

	
	
	
	
	}